<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Common
 *
 * @author Administrator
 */
class Common {
    //put your code here
   static public function WriteLinetxt($content,$filename)
    {
        $output = print_r($content, true);
        file_put_contents($filename, $output,FILE_APPEND);
        $output = print_r("\r\n", true);
        file_put_contents($filename, $output,FILE_APPEND);
    }
    
   static public function is_empty(&$val,$IfEmptyThenReturnValue)
    {
        if(empty($val))
        {
            return $IfEmptyThenReturnValue;
        }
        else
        {
            return $val;
        }
    } 
    
}

?>
